﻿Namespace SchoolClick.Models
    Public Class InfoProfesor

        <Remote("_validateIDUser", "Home")> _
        <Display(Name:="Usuario del sistema")> _
        <MinLength(6, ErrorMessageResourceName:="Error_Length_User", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <RegularExpression(JFRegExpValidators.UserSystem, ErrorMessageResourceName:="Error_UserSystem", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property ID_Usuario As String

        <Display(Name:="Nombres")> _
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <RegularExpression(JFRegExpValidators.OnlyLetrasWithSpace, ErrorMessageResourceName:="Error_OnlyLetras_with_Space", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property Nombres As String

        <Display(Name:="Apellidos")> _
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <RegularExpression(JFRegExpValidators.OnlyLetrasWithSpace, ErrorMessageResourceName:="Error_OnlyLetras_with_Space", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property Apellidos As String

        <Display(Name:="DUI")> _
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <RegularExpression(JFRegExpValidators.DUI, ErrorMessageResourceName:="Error_DUI", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property DUI As String

        <Display(Name:="Teléfono")> _
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <RegularExpression(JFRegExpValidators.Telefono, ErrorMessageResourceName:="Error_Telefono", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property Telefono As String

        <Display(Name:="E-Mail")> _
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <RegularExpression(JFRegExpValidators.Email, ErrorMessageResourceName:="Error_EMail", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property CorreoE As String
    End Class
End Namespace
